#https://zhuanlan.zhihu.com/p/23062197

    def mobage_login_methods(self):
        user_elements = self.driver.find_elements_by_xpath('//input[contexts(@name, "user")]')
        user_elements.clear()
        for user in user_elements:
            if user.is_displayed():
                if user.is_enabled():
                    user.send_keys('username')
                    pass_elements = self.driver.find_elements_by_xpath('//input[contains(@name, "pass")]')
                    for passw in pass_elements:
                        if passw.is_displayed():
                            if passw.is_enabled():
                                passw.clear()
                                passw.send_keys('password')  # Keys.RETURN 回车键
                                time.sleep(4)
                                return 'username' " login successfully \n"
                    #加抛错信息
                    except
                    return 'password' " login failed \n"
                    pass